package com.dimao.certificate_build_service.http;

import io.vertx.core.json.JsonObject;

public class Reply {
    private Boolean succeed;

    public Reply(Boolean succeed){
        setSucceed(succeed);
    }

    public JsonObject toJson(){
        return new JsonObject().put("error", !succeed);
    }

    public void setSucceed(Boolean succeed) {
        this.succeed = succeed;
    }

    public Boolean isSucceed() {
        return succeed;
    }
}
